home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
serial
/
callback.001
/
callback~
/
callback
/
lib
/
process
/
killinit.c
next >
Wrap
C/C++ Source or Header
|
1996-08-01
|
489b
|
21 lines
#include "process.p"
#include "../../configure.h"
void killinit()
{
activate_ttylines(); /* kill them all */
load(the_enablefile); /* reload the enable files */
make_configfile(); /* make final configuration file */
if (kill(PID_INIT, SIGHUP)) /* kill init (rereads inittab) */
error("can't restart init.");
modem_respawn(); /* kill all modem processes */
puts("init restarted (modemlines enabled)\n");
}